﻿using System;
using System.Collections.Generic;
using System.Text;
using WordLib.Model;
using System.IO;

namespace WordService.Business.IBLL
{
    public interface IFileBLL
    {
        /// <summary>
        /// 根据文件获得一个InputDataModel的列表，该列表用于整体存储
        /// </summary>
        /// <param name="fileInfo"></param>
        /// <returns></returns>
        IList<InputDataModel> GetFileList(FileInfo fileInfo);
        /// <summary>
        /// 获得系统配置里面的关键字权值
        /// </summary>
        /// <returns></returns>
        IDictionary<String, Decimal> GetKeywordRate();
        /// <summary>
        /// 保存系统配置里面的关键字权值
        /// </summary>
        /// <param name="rateMap"></param>
        /// <returns></returns>
        Boolean SaveKeywordRate(IDictionary<String, Decimal> rateMap);
        /// <summary>
        /// 获得系统配置里面的作者权值
        /// </summary>
        /// <returns></returns>
        IDictionary<Int32, Decimal> GetAuthorRate();
        /// <summary>
        /// 保存系统配置里面的作者权值
        /// </summary>
        /// <param name="rateMap"></param>
        /// <returns></returns>
        Boolean SaveAuthorRate(IDictionary<Int32, Decimal> rateMap);
        /// <summary>
        /// 清除系统中所有的数据
        /// </summary>
        /// <returns></returns>
        Boolean ClearData();
    }
}
